function main(){
    debugger
    var self = this; // 作用域
    var tableComp = self.$$element("table_bqb9q2"); // 获取表格元素
    let unitId = self.$$roots()[0].state.extraParams.claimUnitValue;
    // 获取当前表格选中的行
    var { selectedRows } = tableComp.$$getSelection();

    console.log(selectedRows);
    var litigants = selectedRows.map(item => {
        var selector = "tr[data-row-key='" + item.id.value + "']";
        var rowElements = tableComp.$el.querySelectorAll(selector);

        var btnElement = rowElements.length > 0 ? rowElements[1].querySelector("button") : null;
        btnElement.disabled = true;

        return {
            unitId: unitId,
            litilitigantId: item.id.value,
            litigantName: item.litigant_name.value,
            btnElement: btnElement
        };
    });

    var newLitigants = litigants.filter(litigant => {
        return !window.unitLitigant.some(existingLitigant => existingLitigant.litilitigantId === litigant.litilitigantId);
    });

    window.unitLitigant.push(...newLitigants);

    let tableListEle = self.$$("table_er5mbj");

    tableComp.$$refreshData();

    tableListEle.$$refreshData();

}
